BOOT_OFF  := 0x0
APP_OFF   := 0x00040000
MCU_MAGIC  = "0xefcdefcd"
GEN_BIN_OUTPUT_FILE:= $(SCRIPTS_PATH)/gen_common_bin_output_file.py

BOOT_BIN_OUTPUT_FILE := $($(HOST_MCU_FAMILY)_LOCATION)/bin/ok1061s_boot.bin
APP_BIN_OUTPUT_FILE := $(LINK_OUTPUT_FILE:$(LINK_OUTPUT_SUFFIX)=$(BIN_OUTPUT_SUFFIX))
ALL_BIN_OUTPUT_FILE := $(LINK_OUTPUT_FILE:$(LINK_OUTPUT_SUFFIX)=_all$(BIN_OUTPUT_SUFFIX))

EXTRA_POST_BUILD_TARGETS += gen_standard_images

gen_standard_images:
	$(QUIET) $(RM) $(ALL_BIN_OUTPUT_FILE)
	$(ECHO) Generate Standard Images: $(BIN_OUTPUT_FILE)
	$(PYTHON) $(GEN_BIN_OUTPUT_FILE) -o $(ALL_BIN_OUTPUT_FILE) -f $(BOOT_OFF) $(BOOT_BIN_OUTPUT_FILE)
	$(PYTHON) $(GEN_BIN_OUTPUT_FILE) -o $(ALL_BIN_OUTPUT_FILE) -f $(APP_OFF) $(APP_BIN_OUTPUT_FILE)

